package cn.yi.newsys.pojo;

import java.io.Serializable;
import java.util.Date;

public class News implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String tittle ;			// 新闻标题
	private Integer  nid ;			// 新闻ID
	private Integer ntid ;			// 主题ID
	private String author ;			// 作者
	private Date dateTime ;			// 创建日期
	private String imgPath ;		// 图片路径
	private String content ;		// 新闻主体
	private Date modDate ;			// 最后修改日期
	private String summary ;		// 摘要
	
	
	public String getTittle() {
		return tittle;
	}
	public void setTittle(String tittle) {
		this.tittle = tittle;
	}
	public Integer getNid() {
		return nid;
	}
	public void setNid(Integer nid) {
		this.nid = nid;
	}
	public Integer getNtid() {
		return ntid;
	}
	public void setNtid(Integer ntid) {
		this.ntid = ntid;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public Date getDateTime() {
		return dateTime;
	}
	public void setDateTime(Date dateTime) {
		this.dateTime = dateTime;
	}
	public String getImgPath() {
		return imgPath;
	}
	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getModDate() {
		return modDate;
	}
	public void setModDate(Date modDate) {
		this.modDate = modDate;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	
	/**
	 * 构造方法
	 * @param tittle
	 * @param nid
	 * @param ntid
	 * @param author
	 * @param dateTime
	 * @param imgPath
	 * @param content
	 * @param modDate
	 * @param summary
	 */
	public News(String tittle, Integer nid, Integer ntid, String author,
			Date dateTime, String imgPath, String content, Date modDate,
			String summary) {
		super();
		this.tittle = tittle;
		this.nid = nid;
		this.ntid = ntid;
		this.author = author;
		this.dateTime = dateTime;
		this.imgPath = imgPath;
		this.content = content;
		this.modDate = modDate;
		this.summary = summary;
	}
	
	/**
	 * 构造方法
	 * @param tittle
	 */
	public News(String tittle) {
		super();
		this.tittle = tittle;
	}
	
	/**
	 * 构造方法
	 */
	public News() {
		super();
	}
	
	/**
	 * 构造方法
	 * @param tittle
	 * @param ntid
	 * @param author
	 * @param dateTime
	 * @param content
	 * @param summary
	 */
	public News(String tittle, Integer ntid, String author, Date dateTime,
			String content, String summary) {
		super();
		this.tittle = tittle;
		this.ntid = ntid;
		this.author = author;
		this.dateTime = dateTime;
		this.content = content;
		this.summary = summary;
	}
	
	
	
}
